﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using GomMinhLongDO;
using GomMinhLongBL;

namespace GomMinhLong.AdminCP.PageUC
{
    public partial class ucChiTiet : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["ChiTiet"] == null)
                    Response.Redirect("Default.aspx");
                else
                {
                    string id = Request.QueryString["ChiTiet"].ToString();
                    load(id);
                }
            }
        }

        public void load(string id)
        {
            DataTable dt = new cmsGioHangBL().SelectBySession(id,-1);
            if (dt.Rows.Count > 0)
            {
                GrChiTiet.DataSource = dt;
                GrChiTiet.DataBind();
            }
        }
    }
}